package com.zsw.procure_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName totalorder
 */
@TableName(value ="totalorder")
public class Totalorder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private Integer totalcode;

    /**
     * 
     */
    private String totalname;

    /**
     * 
     */
    private Integer phone;

    /**
     * 
     */
    private Date totaltime;

    /**
     * 
     */
    private Integer totalprice;

    /**
     * 
     */
    private String company;

    /**
     * 
     */
    private Integer huizongstatus;

    /**
     * 
     */
    private String xiadanname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getTotalcode() {
        return totalcode;
    }

    /**
     * 
     */
    public void setTotalcode(Integer totalcode) {
        this.totalcode = totalcode;
    }

    /**
     * 
     */
    public String getTotalname() {
        return totalname;
    }

    /**
     * 
     */
    public void setTotalname(String totalname) {
        this.totalname = totalname;
    }

    /**
     * 
     */
    public Integer getPhone() {
        return phone;
    }

    /**
     * 
     */
    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    /**
     * 
     */
    public Date getTotaltime() {
        return totaltime;
    }

    /**
     * 
     */
    public void setTotaltime(Date totaltime) {
        this.totaltime = totaltime;
    }

    /**
     * 
     */
    public Integer getTotalprice() {
        return totalprice;
    }

    /**
     * 
     */
    public void setTotalprice(Integer totalprice) {
        this.totalprice = totalprice;
    }

    /**
     * 
     */
    public String getCompany() {
        return company;
    }

    /**
     * 
     */
    public void setCompany(String company) {
        this.company = company;
    }

    /**
     * 
     */
    public Integer getHuizongstatus() {
        return huizongstatus;
    }

    /**
     * 
     */
    public void setHuizongstatus(Integer huizongstatus) {
        this.huizongstatus = huizongstatus;
    }

    /**
     * 
     */
    public String getXiadanname() {
        return xiadanname;
    }

    /**
     * 
     */
    public void setXiadanname(String xiadanname) {
        this.xiadanname = xiadanname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Totalorder other = (Totalorder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTotalcode() == null ? other.getTotalcode() == null : this.getTotalcode().equals(other.getTotalcode()))
            && (this.getTotalname() == null ? other.getTotalname() == null : this.getTotalname().equals(other.getTotalname()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getTotaltime() == null ? other.getTotaltime() == null : this.getTotaltime().equals(other.getTotaltime()))
            && (this.getTotalprice() == null ? other.getTotalprice() == null : this.getTotalprice().equals(other.getTotalprice()))
            && (this.getCompany() == null ? other.getCompany() == null : this.getCompany().equals(other.getCompany()))
            && (this.getHuizongstatus() == null ? other.getHuizongstatus() == null : this.getHuizongstatus().equals(other.getHuizongstatus()))
            && (this.getXiadanname() == null ? other.getXiadanname() == null : this.getXiadanname().equals(other.getXiadanname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTotalcode() == null) ? 0 : getTotalcode().hashCode());
        result = prime * result + ((getTotalname() == null) ? 0 : getTotalname().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getTotaltime() == null) ? 0 : getTotaltime().hashCode());
        result = prime * result + ((getTotalprice() == null) ? 0 : getTotalprice().hashCode());
        result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
        result = prime * result + ((getHuizongstatus() == null) ? 0 : getHuizongstatus().hashCode());
        result = prime * result + ((getXiadanname() == null) ? 0 : getXiadanname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", totalcode=").append(totalcode);
        sb.append(", totalname=").append(totalname);
        sb.append(", phone=").append(phone);
        sb.append(", totaltime=").append(totaltime);
        sb.append(", totalprice=").append(totalprice);
        sb.append(", company=").append(company);
        sb.append(", huizongstatus=").append(huizongstatus);
        sb.append(", xiadanname=").append(xiadanname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}